﻿@model sorochinska_kl.Models.Employee

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Employee</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ManagerID, "Manager")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ManagerID", String.Empty)
            @Html.ValidationMessageFor(model => model.ManagerID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HRManagerID, "HR Manager")
        </div>
        <div class="editor-field">
            @Html.DropDownList("HRManagerID", String.Empty)
            @Html.ValidationMessageFor(model => model.HRManagerID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PositionID, "Position")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PositionID", String.Empty)
            @Html.ValidationMessageFor(model => model.PositionID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DepartmentID, "Department")
        </div>
        <div class="editor-field">
            @Html.DropDownList("DepartmentID", String.Empty)
            @Html.ValidationMessageFor(model => model.DepartmentID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OfficeID, "Office")
        </div>
        <div class="editor-field">
            @Html.DropDownList("OfficeID", String.Empty)
            @Html.ValidationMessageFor(model => model.OfficeID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EmployeeStatusID, "EmployeeStatus")
        </div>
        <div class="editor-field">
            @Html.DropDownList("EmployeeStatusID", String.Empty)
            @Html.ValidationMessageFor(model => model.EmployeeStatusID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StartDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartDate)
            @Html.ValidationMessageFor(model => model.StartDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkPhone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkPhone)
            @Html.ValidationMessageFor(model => model.WorkPhone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CellPhone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CellPhone)
            @Html.ValidationMessageFor(model => model.CellPhone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
